home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 / Ham Radio 2000.iso / ham2000 / satellit / pacdoc / intro.doc < prev    next >
Text File  |  1990-09-05  |  16KB  |  318 lines

  1.  
  2.  
  3.                                           
  4.                      PACSAT Protocol Suite - An overview
  5.                                              
  6.                                              
  7.                             Harold E. Price, NK6K
  8.                              Jeff Ward, G0/K8KA
  9.           
  10.  
  11.  
  12.                                   ABSTRACT
  13.  
  14.           
  15.  
  16.      A Low Earth Orbiting "Pacsat"  has been described in the past  as 
  17.      an   orbiting   bulletin   board  system.   This   is   an   over-
  18.      simplification.  A PACSAT is a multi-channel, full duplex  device, 
  19.      with  short, periodic access times dictated by orbital  mechanics.  
  20.      These  attributes mandate a different approach than  the  standard 
  21.      command-line  interpreter style of BBS if the full potential of  a 
  22.      PACSAT is to be realized.
  23.  
  24.      The  authors  propose  a new methodology for a  PACSAT,  and  have 
  25.      developed  several new protocols to implement more  efficient  ac-
  26.      cess.  These protocols all use AX.25, either in connected mode  or 
  27.      with  UI frames.  This paper provides a description of the  access 
  28.      model, and an overview of the new protocols.
  29.  
  30.  
  31. Background
  32.  
  33. The authors have been struggling with the question "How can we make the 
  34. best use of a bandwidth-limited low earth orbiting digital store-and-
  35. forward system with a worldwide, unstructured, heterogeneous user base" 
  36. since an amateur Packet Radio satellite was first discussed in 1982.  We 
  37. began on air experimentation with the UoSAT-2 (UO-11) Digital 
  38. Communications Experiment in December, 1984.  In the following five and 
  39. one half years, we've looked at where a resource like a PACSAT best fits in 
  40. to the network as a whole.  As a result of our study, we are proposing the 
  41. use of a broadcast protocol as the basic downlink method, and a "file 
  42. server" rather than a BBS application as the basic service offered.  This 
  43. document provides a brief overview of these conclusions, the companion 
  44. specification documents provide the implementation details. 
  45.  
  46. This paper and the companion protocol specification papers assume that the 
  47. reader has a basic understanding of the current packet radio satellites, 
  48. for additional background, see references [1] through [6]. 
  49.  
  50. PACSAT
  51.  
  52. PACSAT is generic term in the amateur radio service for a low earth 
  53. orbiting spacecraft which carries a large on-board memory for the purpose 
  54. of data storage and retrieval by groundstations.  A PACSAT can be the 
  55. entire mission of a spacecraft, such as AMSAT-NA's AO-16, or a minor 
  56. adjunct, such as the DCE on UO-11.   The paper refers to the current 
  57. "PACSAT" spacecraft - the University of Surrey's UoSAT-3 (UO-14) and the 
  58. AMSAT Microsats AO-16 and LO-19.  These spacecraft will be the hosts of 
  59. software developed by the authors which implements the protocols described 
  60. herein.  
  61.  
  62. Each of these spacecraft are different.  AO-16 and LO-19 are the most closely 
  63. related, based on AMSAT's Microsat design.  From the user's point of view, 
  64. they have four 1200 bps uplinks and one 1200 bps downlink.  These are switcha-
  65. ble to 4800 bps, but no ground modems exist at this time.  UO-14 has a single 
  66. uplink and downlink, at 9600 bps.  Although the onboard computers are differ-
  67. ent, they are compatible at the application software level, permitting the 
  68. same software to be used on all three.  
  69.  
  70. In spite of these differences, all of these spacecraft share the following 
  71. attribute: each is a bandwidth limited device.  The number of uplinks and 
  72. downlinks is much less than the number of users, and the capacity of the link 
  73. is much less than the offered load.  Each is only visible to a particular user 
  74. for about 14 minutes, four or five times a day at middle latitudes.  We feel 
  75. that this is the critical design driver, and the access methods must be opti-
  76. mized with this in view.
  77.  
  78. Keep in mind, however, that even while subject to access time limitations, the 
  79. satellites can still move a prodigious amount of data, especially when com-
  80. pared to the current amateur radio long haul network standards.  A typical 
  81. gateway station, moving traffic from the US to the UK on 20MHz at 300 baud, 
  82. assuming the band is open for 16 hours, could move 1.7 million bytes of data 
  83. per day, if the link was 100% efficient.  The average HF link is not 100% 
  84. efficient, at best it is perhaps 30% efficient.  The link is only half duplex, 
  85. so this data transfer is only way only.
  86.  
  87. UO-14, even with only 56 minutes of access time per day at 9600 baud, can move 
  88. 3.2 million bytes of data in one direction.  The excellent link quality of the 
  89. current PACSATs, combined with their full duplex nature and the protocols we 
  90. are proposing, can approach 90% efficiency.  Full duplex means transfers can 
  91. occur in both directions simultaneously, so that UO-14 could move nearly 5.7 
  92. million bytes of data between the US and the UK in a 24 hour period, vs. .5 
  93. million bytes over an HF circuit.
  94.  
  95. The desire to realize this potential is the reason we choose some non-
  96. traditional (for the amateur radio service) access methods for PACSAT.  These 
  97. methods, broadcasting and file server, are discussed below.
  98.  
  99. Broadcasting
  100.  
  101. A spacecraft is inherently a broadcast device.  It transmits from on high, and 
  102. many users can hear it at the same time.
  103.  
  104. To optimize the available downlink time, we are recommending the use of a 
  105. broadcast protocol.  This protocol adds information to the basic AX.25 data 
  106. frame to permit many stations to make simultaneous use of a single file down-
  107. load session.  When one station in Maryland requests the current orbital 
  108. element sets, there is no need for stations in Toronto and Miami to do the 
  109. same, they should be able to make use of the information as it is downlinked 
  110. to Maryland if they are all in view of the satellite at the same time.  To 
  111. make use of a broadcasted frame of data, each frame must be tagged with the 
  112. file it belongs to and the position within that file that the data belongs in.
  113.  
  114. There should also be enough information for a station to determine if it has 
  115. all of the data belonging to a file, and if not, to request that just the 
  116. missing parts of the file be retransmitted. The specification titled "PACSAT 
  117. Broadcast Protocol" describes a method of providing this additional informa-
  118. tion.
  119.  
  120. With a broadcast protocol, a groundstation can simply monitor the downlink and 
  121. accumulate files of data.  Since files gathered in this way will have been 
  122. unsolicited, the format of the contents may not be known to the user.  For 
  123. example, if one asked for a file of NASA format orbital elements, one can make 
  124. a good guess that the resulting file contains NASA format orbital elements. 
  125. However, if a "random" file is captured, its contents may not be understand-
  126. able simply from inspection.  Some addition information, such as a file name, 
  127. data type, description, creation date, etc., may be required.  Each broadcast-
  128. ed file, therefore, needs a header in a standard format with this information.  
  129. The specification titled "PACSAT File Header Definition" describes a method 
  130. of providing this information.
  131.  
  132. We hope that the broadcast protocol promote efficient use of the downlink.  It 
  133. should reduce the number of requests for files of general interest.  It should 
  134. also reduce the uplink loading, since a broadcasted file does not receive an 
  135. ack for each frame or group of frames.  In the best case, only one "ack" is 
  136. sent for an entire file, and that would be the request to stop broadcasting 
  137. it.
  138.  
  139. Even though the sky-to-ground link is broadcast in nature, the ground-to-sky 
  140. link is not.  PACSAT "sees" many ground stations at one time.  For this 
  141. reason, a connected-mode, non broadcast file transfer method is also defined, 
  142. and is described in the paper on "PACSAT File Transfer Level 0".
  143.  
  144. File Server
  145.  
  146. As a data transfer and storage device, a PACSAT can serve a multitude of 
  147. purposes.  It can store telemetry, digitized voice and video images, personal 
  148. mail, forwarded mail, or anything else the can be stored in a computer file.  
  149. Mail forwarding is a good example of an excellent use of a PACSAT.  AO-16's 
  150. 1200 baud link could easily be used to transfer 240k bytes of uncompressed 
  151. forwarded mail in each direction between California and England in 24 hours, 
  152. with just one morning and evening pass over each location. UO-14's 9600 baud 
  153. link could move 1.6 Mb of data in the same time.  A PACSAT can store up to 8Mb 
  154. of data.  This would make a powerful addition to the current HF relay network.
  155.  
  156. The problem, however, is that the current amateur network is in a state of 
  157. flux.  New addressing schemes are proposed every few weeks, new routes and new 
  158. ways of routing are proposed, tried, discarded or modified.  This is good.  
  159. Implementing the software on a spacecraft to follow these shifting designs is 
  160. difficult, however.  The testing required for the spacecraft is more rigorous, 
  161. especially on the Microsats, where the same computer is used for the BBS and 
  162. to keep the batteries charged.  Faulty forwarding code could crash the comput-
  163. er, which could cause damage to the batteries or reduce their life expectancy.
  164.  
  165. The amount of program memory is limited on the spacecraft as well.  To counter 
  166. the effects of high energy particles above the earth's atmosphere which cause 
  167. memory bits to be changed, the PACSATs use 12 bits to store 8 bits of program 
  168. data.  The extra bits are used to correct for single bit errors.  To keep the 
  169. cost down, and to reduce the power used (AO-16's CPU uses about 500 milli-
  170. watts, on average), only 256k bytes of program space is available.  (This 
  171. should not be confused with the message storage space, which is much larger 
  172. than the program memory, and is protected with a software algorithm using 
  173. three 3 bytes to protect 253 bytes of data.  Because this memory is protected 
  174. with software, it is not suitable for storing a running program, since a 
  175. program can not protect its executing instruction.)
  176.  
  177. We have a desire, then, to keep the spacecraft code simple and stable, while 
  178. still allowing it to be a useful part of the changing amateur network.
  179.  
  180. We propose that the spacecraft be primarily used as a file server, moving data 
  181. files from one point to another.  The PACSAT would have no knowledge of the 
  182. contents of the files, nor would it take an active role in the forwarding of 
  183. mail messages. Groundbased software could, however, make the PACSAT system 
  184. look like a familiar BBS to the user, and it could intelligently forward mail.
  185.  
  186. A PACSAT will know how to receive and transmit a standard file format.  All 
  187. files will have a standard header, the same one that is used by the broadcast 
  188. protocol.  It will also know how to select files for transmission based on the 
  189. contents of the header.  This feature can then be used by groundstation soft-
  190. ware to emulate any desired user interface.
  191.  
  192. For example, assume that a user wanted to send a personal mail message to a 
  193. friend.  In the current terrestrial environment, he would connect to a BBS, 
  194. which would lead him in a question and answer session something like this:
  195.  
  196.  
  197.             Remote Computer User
  198.  
  199.  
  200.  
  201.             What do you want?   Send message
  202.  
  203.             To whom?       Fred
  204.  
  205.             Title?         Club meeting
  206.  
  207.             Message?       Meeting at 8 p.m.
  208.  
  209.             What do you want?   Read new mail.
  210.  
  211.             Message #200
  212.  
  213.             . . . . .
  214.  
  215.  
  216.  
  217.  
  218. Using the PACSAT system, exactly the same exchange would take place, except 
  219. that the conversation is between the user and his local computer.  The message 
  220. is stored for later transmission to a PACSAT.  The read new mail request is 
  221. also stored.  The next time the PACSAT comes overhead, the computer does the 
  222. following:
  223.  
  224. 1) builds a file with a standard PACSAT header.  The header says that the file 
  225. contains a mail message, from you, to Fred.  
  226.  
  227. 2)  The file is compressed, and sent to PACSAT.  
  228.  
  229. 3)  The local computer then sends a message to PACSAT that says "send the 
  230. next file who's header meets the following criteria:  it's a mail message 
  231. type, the destination is me, and the file number is bigger than x".
  232.  
  233. "x" is the number of the last file received on the ground, and is kept by 
  234. the local computer.  After the pass, the local computer can now print any new 
  235. mail received.  To the user, it looked pretty much the same.
  236.  
  237. What about file forwarding?  A gateway would need to know what type of mail it 
  238. could forward.  Let's assume that the routing scheme of the week is based on a 
  239. hierarchical string containing states, like nk6k.ca.usa, and this gateway han-
  240. dles mail to CA, NV, and OR.  The gateway would send a message to PACSAT 
  241. containing the following request:
  242.  
  243. "Send the next file who's header meets the following criteria:  it's a for-
  244. warded message, and the destination string contains '?.ca.?' or '?.nv.?' or 
  245. '?.or.?', and the download count is 0."
  246.  
  247. The file would be received, decompressed, and imported into the standard BBS 
  248. program after the pass.
  249.  
  250. In this way, the ground program can be as simple or as complex as required, 
  251. the PACSAT only needs to know how to select a file for transmission based on 
  252. the contents of fields in the standard file header.
  253.  
  254. Summary
  255.  
  256. These two ideas, broadcasting and file server, are certainly different than 
  257. the current common usage of packet radio on the amateur bands.  We feel that 
  258. this is the best approach for the special case of a PACSAT, however, and that 
  259. with suitable groundstation software, these concepts can be integrated into 
  260. the mainstream.  
  261.  
  262. Implementation Status
  263.  
  264. Prototype implementations of all of the protocols discussed in this group of 
  265. papers are running on UO-14 as of late July, they should be running on the 
  266. Microsats by the time of the ARRL conference.  Prototype ground software is 
  267. also running.  We plan to make the source code for simple versions of the 
  268. ground portion of the system available asap.  Executable versions for the IBM 
  269. PC will be made available as shareware, with the proceeds going to AMSAT-UK 
  270. and AMSAT-NA to further developement of future PACSATs.  Fully integrated, 
  271. automated, color graphic, "all singing and dancing" software will be avail-
  272. able for sale by AMSAT-UK and AMSAT-NA later in the year.  Like QUICKTRAK and 
  273. InstantTrak, the proceeds from this commerical quality software will go to 
  274. finance future amateur satellite endevours.
  275.  
  276. We hope that other software authors will use the documentation and source to 
  277. develop support for non IBM PC systems.  The contents of these papers are 
  278. sufficient to allow programmers to begin implementing their own software now.
  279.  
  280.  
  281. Correspondence
  282.  
  283. The authors may be reached at:
  284.  
  285. Telemail:            HPRICE or UOSAT
  286. Compuserve:          71635,1174
  287. Packet:              NK6K @ WB6YMH or
  288.                      G0K8KA @ GB2UP
  289. Internet:            71635.1174@COMPUSERVE.COM
  290. Mail:                Jeff Ward
  291.                      UoSAT Unit
  292.                      University of Surrey
  293.                      Guildford, Surrey  GU2 5XH
  294.                      UK
  295.  
  296. REFERENCES
  297. [1]  Loughmiller D.,   and McGwier, R., "Microsat: The next Generation of 
  298. OSCAR Satellites - Part 1", QST, May 1989, pp. 37-40.
  299.  
  300. [2]  Loughmiller D.,   and McGwier, R., "Microsat: The next Generation of 
  301. OSCAR Satellites - Part 2", QST, June 1989, pp. 53-54,70.
  302.  
  303. [3]  Clark, T., "Amsat's Microsat/Pacsat Program", ARRL 7th Computer Net-
  304. working Conference, pp. 41-47, Columbia, Maryland, 1 October 1988.
  305.  
  306. [4] Ward, J., "The UoSAT-D Packet Communications Experiment", ARRL 7th 
  307. Computer Networking Conference, pp. 186-193, Columbia, Maryland, 1 October 
  308. 1988.
  309.  
  310. [5]  Price, H., and McGwier, R., "Pacsat Software", ARRL 7th Computer Net-
  311. working Conference, pp. 145-149, Columbia, Maryland, 1 October 1988.
  312.  
  313. [6]  Johnson, L., and Green, C., "Microsat Project - Flight CPU hardware", 
  314. ARRL 7th Computer Networking Conference, pp. 186-193, Columbia, Maryland, 1 
  315. October 1988.
  316.  
  317. 
  318.